import java.util.Scanner;

public class 求3数立方和 {
    public static void Cubic(){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入数字x");
        int x= sc.nextInt();
        System.out.println("请输入数字y");
        int y= sc.nextInt();
        System.out.println("请输入数字z");
        int z= sc.nextInt();
        int s=x*x*x+y*y*y+z*z*z;
        System.out.println("结果为"+s);
    }

    public static void main(String[] args) {
        Cubic();
    }
}
